<%-- 
    Document   : homelayout
    Created on : 16-12-2009, 08:08:00
    Author     : chquyet
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Khách sạn Hoàn Kiếm</title>
        <link href="plugins/scroll/jdNewsScroll.css" rel="stylesheet" type="text/css" />
        <script src="plugins/scroll/jquery.js" type="text/javascript"></script>
        <script src="plugins/scroll/jquery.dimensions.js" type="text/javascript"></script>
        <script src="plugins/scroll/jquery.jdNewsScroll.js" type="text/javascript"></script>

        <link href="images/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            function check(){
                if(document.form1.fullname.value==""){
                    alert(" Vui lòng nhập họ và tên !");
                    document.form1.fullname.focus();
                    return false;
                }
                if(document.form1.title.value==""){
                    alert(" Vui lòng nhập tiêu đề !");
                    document.form1.title.focus();
                    return false;
                }
                if(document.form1.content.value==""){
                    alert(" Vui lòng nhập nội dung cần liên hệ !");
                    document.form1.content.focus();
                    return false;
                }

            }

            function introslide()
            {
                var pic_width=630
                var pic_height=440
                var button_pos=3
                var stop_time=5000
                var show_text=1
                var txtcolor="#CC0000"
                var bgcolor="#ffffff"
                var imag=new Array()
                var link=new Array()
                var text=new Array()
                imag[1]="images/a1-big.JPG"
                link[1]="http://www.hoankiemhotel.com.vn/"
                text[1]="Hình ảnh hoạt động 1"
                imag[2]="images/a2-big.JPG"
                link[2]="http://www.hoankiemhotel.com.vn/"
                text[2]="Hình ảnh hoạt động 2"

                imag[3]="images/a3-big.JPG"
                link[3]="http://www.hoankiemhotel.com.vn/"
                text[3]="Hình ảnh hoạt động 3"
                imag[4]="images/a4-big.JPG"
                link[4]="http://www.hoankiemhotel.com.vn/"
                text[4]="Hình ảnh hoạt động 4";
                imag[5]="images/a5-big.jpg"
                link[5]="http://www.hoankiemhotel.com.vn/"
                text[5]="Hình ảnh hoạt động 5";
                imag[6]="images/a6-big.jpg"
                link[6]="http://www.hoankiemhotel.com.vn/"
                text[6]="Hình ảnh hoạt động 6";

                var swf_height=show_text==1?pic_height+0:pic_height
                var pics="", links="", texts=""
                for(var i=1; i<imag.length; i++){
                    pics=pics+("|"+imag[i])
                    links=links+("|"+link[i])
                    texts=texts+("|"+text[i])
                }
                pics=pics.substring(1)
                links=links.substring(1)
                texts=texts.substring(1)
                document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'" style="margin: 0px 0px 0px 0px;">')
                document.write('<param name="movie" value="images/gallery.swf">')
                document.write('<param name="quality" value="high">')
                document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">')
                document.write('<embed style="margin: 0px 0px 0px 0px;" src="images/gallery.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">')
                document.write('</object>')
            }
        </script>

    </head>

    <body >

        <div class="topmenu">

            <c:forEach var="toppage" items="${toppages}">
                ${toppage.content}
            </c:forEach>

        </div>
        <!--
<div class="header">

<img src="images/logo.png" alt="Khách sạn Hoàn Kiếm" border="0" align="middle"/>
</div> -->
        <div class="container">
            <div class="leftside">

                <div class="hkhbox2">

                    <img src="images/logo.png" border="0"/>
                </div>


                <div class="hkhboxmenu">
                    <ul>                        
                        <c:forEach var="leftpage" items="${leftpages}">
                            <li> <a href="HomeAction?act=page&id=${leftpage.id}">${leftpage.title}</a> </li>
                        </c:forEach>
                    </ul>
                </div>

                <div class="hkhbox3">
                    <span class="title"><img src="images/ybicon.gif" border="0"/> YAHOO</span> <br/><br/>
                    <a href="ymsgr:sendim?caohuuquyet"><img src="http://opi.yahoo.com/online?u=caohuuquyet&m=g&t=9" alt="Sales" border="0" /> </a>

                </div>


                <div class="hkhbox">
                    <c:forEach var="otherpage" items="${otherpages}">
                        ${otherpage.content}
                    </c:forEach>
                </div>


            </div>

            <div class="rightside">
                <jsp:include page="${forward}"/>
            </div>
            <div class="clearfloat"></div>

            <center>
                <img src="images/bottomline.jpg" border="0" /> <br/>
                <c:forEach var="bottompage" items="${bottompages}">
                    ${bottompage.content}
                </c:forEach>
            </center>


        </div>
        <div class="clearfloat"></div>
        <div class="footer">

        </div>

    </body>
</html>